//
//  WKServerNode.h
//  TangSengDaoDaoiOS
//
//  Created by wangfei on 2025/8/20.
//  Copyright © 2025 WK. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, NodeSpeedLevel) {
    NodeSpeedLevelFast,    // 快速
    NodeSpeedLevelMedium,  // 中等
    NodeSpeedLevelSlow     // 慢速
};

@interface WKServerNode : NSObject
@property (nonatomic, copy) NSString *name;       // 节点名称
@property (nonatomic, copy) NSString *ip;       // 服务器IP或域名
@property (nonatomic, assign) BOOL https;       // 是否启用HTTPS
@property (nonatomic, copy) NSString *desc;     // 节点描述（可选）
@property (nonatomic, copy) NSString *delay;      // 延迟时间
@property (nonatomic, assign) NodeSpeedLevel speedLevel; // 速度等级
@property (nonatomic, assign) BOOL isSelected;    // 是否选中
@property (nonatomic, assign) BOOL isAvailable;   // 是否可用
@property (nonatomic, strong) UIColor *speedColor;   // 颜色
+ (instancetype)nodeWithDict:(NSDictionary *)dict;
@end

